# Contributor:
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=sdparm
pkgver=1.11
pkgrel=0
pkgdesc="SCSI device parameter modification tool"
url="http://sg.danny.cz/sg/sdparm.html"
arch="all"
license="BSD-2-Clause"
makedepends="linux-headers"
subpackages="$pkgname-doc"
source="http://sg.danny.cz/sg/p/sdparm-$pkgver.tgz"

build() {
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="cb5d1dd351464fcc05005429bb8f452b05e6673b1dd8b699f762d005ab3e612b3b7d6ea400ffbd5e98e33e3e78da735d01705353b8a9b9567aac55a3f6b6d813  sdparm-1.11.tgz"
